package com.zhuiYun.project.api.menu.service;

import com.zhuiYun.project.api.menu.model.MenuModel;
import com.zhuiYun.project.common.errorCode.CommonException;
import com.zhuiYun.project.common.response.CommonResult;
import com.zhuiYun.project.util.pageUtil.PageRequest;

/**
 * @Author dongdong
 * @Date 2023/4/3 19:58
 **/
public interface MenuService {
    /**
     * @description:菜单管理的分页查询方法
     * @author: dongdong
     * @date: 2023/4/4 13:33
     * @param: [menuModel, pageRequest]
     * @return: com.zhuiYun.project.common.response.CommonResult
    **/
    CommonResult getMenuAndFunction();
    /**
     * @description:菜单新增
     * @author: dongdong
     * @date: 2023/4/4 13:33
     * @param: [menuModel]
     * @return: com.zhuiYun.project.common.response.CommonResult
     **/
    CommonResult saveMenu(MenuModel menuModel) throws CommonException;

    CommonResult getMenuNotFunction();

    CommonResult delMenuById(Integer id);

    CommonResult updateMenu(MenuModel menuModel) throws CommonException;

    CommonResult getMenuByUser();
}
